package com.app.yc.ifapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：TanTun
 * 时间：2017/2/23
 * 邮箱：32965926@qq.com
 * 描述：用户信息实体
 */

public class UserInfo implements Parcelable {

    private String user_Id;

    private String userNo;

    private String userName;

    private String userXm;

    private int userType;

    public void setUser_Id(String user_Id){
        this.user_Id = user_Id;
    }

    public String getUser_Id(){
        return this.user_Id;
    }

    public void setUserNo(String userNo){
        this.userNo = userNo;
    }

    public String getUserNo(){
        return this.userNo;
    }

    public void setUserName(String userName){
        this.userName = userName;
    }

    public String getUserName(){
        return this.userName;
    }

    public void setUserXm(String userXm){
        this.userXm = userXm;
    }

    public String getUserXm(){
        return this.userXm;
    }

    public void setUserType(int userType){
        this.userType = userType;
    }

    public int getUserType(){
        return this.userType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.user_Id);
        dest.writeString(this.userNo);
        dest.writeString(this.userName);
        dest.writeString(this.userXm);
        dest.writeInt(this.userType);
    }

    public UserInfo() {
    }

    protected UserInfo(Parcel in) {
        this.user_Id = in.readString();
        this.userNo = in.readString();
        this.userName = in.readString();
        this.userXm = in.readString();
        this.userType = in.readInt();
    }

    public static final Parcelable.Creator<UserInfo> CREATOR = new Parcelable.Creator<UserInfo>() {
        @Override
        public UserInfo createFromParcel(Parcel source) {
            return new UserInfo(source);
        }

        @Override
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };
}
